<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.wxtf.platform.plugins.user.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
UserBean user = (UserBean)request.getSession().getAttribute("userBean");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<title>日志下载</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<link type="text/css" rel="stylesheet" href="ligerUI/skins/Aqua/css/ligerui-all.css" />
		<link type="text/css" rel="stylesheet" href="ligerUI/skins/<%=user.getUserCss()%>/css/ligerui-all.css" />
		<link type="text/css" rel="stylesheet" href="resource/css/style.css" />
		
		<script type="text/javascript" src="js/jquery/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="js/common.js"></script>
		
	</head>
	<body>
		<br />
		<input id="btn" value="日志下载" type="button" style=" margin-left: 20px;" class="btn2" onclick="downloadLog();" />
		<iframe id="downloadFrame" name="downloadFrame" style="display: none;"></iframe>
		<script type="text/javascript">
			function downloadLog(){
				var jsonObj = {
              		"classname": "com.wxtf.platform.plugins.user.UserLoginAction",
					"methodname": "downloadLog",
					"logicdata": [],
					"extenddata": []
              	};
				callserver(jsonObj, function(data, status){
               		downloadFile(data.url);
              	}, function(data, status){
              		succMsgTip('下载失败');
              	});
          	}
		</script>
	</body>
</html>
